{template header}
<h4>话题ID留空表示不推荐该话题，话题新建完后才能推荐首页</h4>
<div class="bs-docs-example" style="clear:both; padding-top: 30px;">
<form action="" method="post">
    <table class="table table-striped">
        <thead>
            <tr >
                <th>ID</th>
                <th>名称</th>
                <th>顺序</th>
                <th>是否上首页</th>
            </tr>
        </thead>
        <tbody>
            {loop $topicList $k $v}
            <tr>
                <td><input type="text" name="topic_id[]" value="{$v['topic_id']}" /></td>
                <td>{$v['name']}</td>
                <td><input type="text" name="sort[]" value="{$v['sort']}" /></td>
                <td><input type="checkbox" name="home[]" value="{$v['topic_id']}" {if $v['home']}checked{/if} /></td>
            </tr>
            {/loop}
            <tr>
                <td><input type="text" name="topic_id[]" value="" /></td>
                <td></td>
                <td><input type="text" name="sort[]" value="" /></td>
                <td><input type="checkbox" name="home[]" value="" /></td>
            </tr>
        </tbody>
    </table>
    <input type="submit" value="提交"/>
</form>
</div>
{template footer}
